/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.mphokazi.designpatterns.part1.structural.composite;

/**
 *
 * @author mphokazi
 */
public class Leaf implements Component {
String name ;
public Leaf(String name ){
this.name = name ;
}
@Override
public void sayHello(){
System.out.println(name + " l e a f says h e l l o " ) ;
}
@Override
public void sayGoodbye(){
System.out.println(name + " l e a f says goodbye " ) ;
}  
}
